Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FancyStatusBars: Bug fixes, UX improvements, and hotbar-relative default layout
Hey everyone! This PR bundles a bunch of improvements I made to the FancyStatusBars feature that I've been working through over the past while. There's bug fixes, quality-of-life tweaks, and a new system that makes the default bar layout work correctly at any GUI scale.
Bug fixes
UX / editor improvements
Hotbar-relative default layout (new)
The biggest addition here is a new HOTBAR_RELATIVE anchor mode for bars. Previously, the default layout was stored as screen-fraction positions (x, y as 0-1 values). This meant the bars would drift to different positions depending on your GUI scale — what looked perfect at scale 2 would be completely off at scale 1 or 3.
Now, default bars store their position as GUI-pixel offsets from the hotbar's top-center instead. Since the Minecraft hotbar is always 182x22 GUI pixels regardless of scale, this makes the default layout completely scale-independent.
How it works:
Default layout: three stat bars (Health / Intelligence / Defense) tiled across the hotbar width with 1px gaps, XP bar spanning the full hotbar width 1px above the hotbar, and Speed / Air bars flanking just outside the hotbar's left and right edges below it.
For anyone who wants a walkthrough of the config screen and how to customize your bars, here's a video tutorial:
https://youtu.be/DED4CUVz_Og?si=5CoVrLA3MHZgTL4P
Let me know if anything looks off or needs adjusting. Happy to revise!